﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kristall.Screens;
using Microsoft.Xna.Framework;
using Kristall.Engine;

namespace Kristall.Editor.Commands
{
    public class DuplicateCommand : MacroCommand
    {
        AABB _duplicate;

        public AABB Duplicate
        {
            get
            {
                return _duplicate;
            }
        }

        public DuplicateCommand(Level level, AABB toDuplicate, Vector2 position)
        {
            this.Commands.Add(new CopyCommand(toDuplicate));

            PasteCommand paste = new PasteCommand(level, position);
            _duplicate = paste.Pasted;

            this.Commands.Add(paste);
        }
    }
}
